package lesson3.pages;

import lesson3.api.ApplicationManager;
import lesson3.pages.locators.page.UserMenuLocators;

public class UserMenu extends PageBase
{
	private final UserMenuLocators locators;

	public UserMenu(ApplicationManager p_app)
	{
		super(p_app);
		locators = new UserMenuLocators(p_app);
	}

	public boolean isLinkLogoutPresent()
	{
		return isElementPresent(locators.linkLogout());
	}

	public void logout()
	{
		click(locators.linkLogout());
	}

}
